package com.zoweunion.mechanic.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 部门表(新)
 * 
 * @author xp
 * @email 17688825585@163.com
 * @date 2020-09-24 14:57:06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@TableName("t_s_ss_dept")
public class DeptEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	/**
	 *
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 父级id
	 */
	private Long pId;
	/**
	 * 部门名称
	 */
	private String deptName;

	private String sId;
	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	/**
	 * 
	 */
	private Integer deleteFlag;

	@TableField(exist = false)
	private List<DeptEntity> childList;

	@TableField(exist = false)
	private List<Map<String,Object>> personList;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String mobilePhone;

    @TableField(exist = false)
    private String email;

    @TableField(exist = false)
    private Integer sexy;

    @TableField(exist = false)
    private String carId;

    @TableField(exist = false)
    private Integer deptId;

    @TableField(exist = false)
    private Integer roleId;

	@TableField(exist = false)
	private Integer pageSize;

	@TableField(exist = false)
	private Integer currentPage;

    @TableField(exist = false)
	private String userId;

	@TableField(exist = false)
	private List<String> ids;

    @TableField(exist = false)
    private String userPassword;
}
